package com.lin.cms.domain;

import java.io.Serializable;

public class GuestbookCtg implements Serializable {

	private static final long serialVersionUID = 1L;

	private int guestbookctgId;

	private int siteId;

	private String ctgName;

	private int priority;

	private String description;

	public GuestbookCtg() {
	}

	public int getGuestbookctgId() {
		return guestbookctgId;
	}

	public void setGuestbookctgId(int guestbookctgId) {
		this.guestbookctgId = guestbookctgId;
	}

	public int getSiteId() {
		return siteId;
	}

	public void setSiteId(int siteId) {
		this.siteId = siteId;
	}

	public String getCtgName() {
		return ctgName;
	}

	public void setCtgName(String ctgName) {
		this.ctgName = ctgName;
	}

	public int getPriority() {
		return priority;
	}

	public void setPriority(int priority) {
		this.priority = priority;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + guestbookctgId;

		return result;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final GuestbookCtg other = (GuestbookCtg) obj;
		if (guestbookctgId != other.guestbookctgId)
			return false;

		return true;
	}
	
	@Override
	public String toString() {
		return getClass().getName() + "@" + Integer.toHexString(hashCode()) + 
			"(" + 
			"guestbookctgId=" + "'" + guestbookctgId + "'" + 
			")";
	}
	
}
